#!/bin/sh
# The script to kill logined user.
username="$1"
/bin/ps aux | /bin/grep $username | /bin/awk '{print $2}' > /tmp/temp.pid 
# awk -F:   /  awk  default separator is space
killid=`cat /tmp/temp.pid`
for PID in $killid
do 
   /bin/kill -9 $PID 2> /dev/null
done

